/************************************************************************
                        Nurbs.cpp - Copyright Claudio Botta

This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110, USA

This file was generated on Sat Mar 15 2008 at 10:58:12
The original location of this file is geomagick/Nurb.cpp
**************************************************************************/

#include "Nurbs.h"
using namespace geomagick;

// Constructors/Destructors
//
Nurbs::Nurbs()
{

        this->NurbsNurbsSurface = new PLib::NurbsSurfacef();
        PLib::Point_nD<float,3> center = PLib::	Point_nD<float,3>(0.0f,0.0f,0.0f);
        this->NurbsNurbsSurface->makeSphere(center,3.0f);
	//this->NurbsNurbsSurfaceGL = new PLib::NurbsSurfaceGL(*this->NurbsNurbsSurface);

}
//
// Methods
//


// Accessor methods
//
void Nurbs::setUKnot(vector<float> & argUKnot)
{

        int a = 5;
        PLib::Vector<float> UKnot = PLib::Vector<float>((float*)&(argUKnot[0]),a);
        NurbsNurbsSurface->modKnotU(UKnot);
}

void Nurbs::setVKnot(vector<float> & argVKnot)
{
        PLib::Vector<float> VKnot = PLib::Vector<float>(&(argVKnot[0]),5);
        NurbsNurbsSurface->modKnotV(VKnot);
}

PLib::NurbsSurfacef* Nurbs::getNurbs()
{
	return this->NurbsNurbsSurface;
}

void Nurbs::draw()
{
	
}


// Other methods
//


